package kr.co.nothingboard.module.board.service;

import java.util.List;

import kr.co.nothingboard.module.board.dao.*;
import kr.co.nothingboard.module.board.model.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BoardService{
	
	@Autowired
	BoardDao boardDao;
	
	@Autowired
	BoardCategoryDao boardCategoryDao;

	public List<BoardDto> getBoardList(BoardSearchDto dto) throws Exception {
		return boardDao.getBoardList(dto);
	}

	public List<BoardCategoryVo> getBoardCategoryList(BoardSearchDto dto) throws Exception {
		return boardCategoryDao.getBoardCategoryList(dto);
	}
}
